﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.hud.components {

    public class HUDVerticalStackComponent extends HUDComponentContainer {

        private static const SPACING:Number = 10;
        private static const STANDARD_ICON_HEIGHT:Number = 61;

        private var yPos:Number;

        public function HUDVerticalStackComponent(){
            this.yPos = 0;
            super();
        }
        override public function reset():void{
            this.yPos = 0;
        }
        override public function addComponent(_arg1:HUDComponent):void{
            super.addComponent(_arg1);
            _arg1.alpha = 1;
            _arg1.y = this.yPos;
            if (_arg1.height == 0){
                this.yPos = (this.yPos + (STANDARD_ICON_HEIGHT + SPACING));
            } else {
                this.yPos = (this.yPos + (_arg1.height + SPACING));
            };
        }

    }
}//package Display.hud.components 
